// 引入 express
const express = require('express');

// 创建服务器对象
const app = express();

app.get('/jsonp', (req, res) => {
  const o = { name: 'ifer', age: 18 }
  res.end('callback('+ JSON.stringify(o) +')')
})

// 监听端口
app.listen(3000, () => console.log('Server running on http://localhost:3000'));